package languages;

public class Java extends Language {

    public Java() {
        super("java");
    }

    @Override
    public float similarity(Language language) {
        if (language.name == "java") {
            return 1f;
        } else if (language.name == "c") {
            return 0.8f;
        } else if (language.name == "scala") {
            return 0.9f;
        } else if (language.name == "python") {
            return 0.4f;
        } else if(language.name == "ruby") {
            return 0.4f;
        } else {
            return 0;
        }
    }
	@Override
	public int getIntRepresentive() {
		return 2;
	}
}
